//
//  YYLYCarouselView.h
//  LaiyunCommunity
//
//  Created by YYKJ on 2020/8/13.
//  Copyright © 2020 易云物联. All rights reserved.
//  商品详情 轮播图控件

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class YYLYCarouselView;


@interface YYLYCarouselViewCell : UICollectionViewCell

@property (nonatomic, strong) UIImageView *contentImageView;

@end


@protocol YYLYCarouselViewDelegate <NSObject>

@optional
- (void)yyly_carouselView:(YYLYCarouselView *)carouselView didClickIndex:(NSInteger)index;

@end


@interface YYLYCarouselView : UIView

@property (nonatomic, assign) BOOL isReuse;
@property (nonatomic, strong) NSArray *sourceArray;

@property (nonatomic, strong) UICollectionView *collectionView;

@property (nonatomic, weak) id<YYLYCarouselViewDelegate> delegate;
@end

NS_ASSUME_NONNULL_END
